<div id="content">
				<div class="breadcrumb">
					<p><a href="<?php echo $this->Html->url(array('controller' => 'recruitments', 'action'=>'index')); ?>">Thị trường lao động</a> > <a href="<?php echo $this->Html->url(array('controller' => 'Recruitments', 'action'=>'category', $Recruitment['RecruitmentType']['id'])); ?>"><?php echo $Recruitment['RecruitmentType']['name']; ?></a> > <?php echo $Recruitment['Career']['name']; ?></p>
				</div><!--end breadcrumb-->
				
				<div class="breadcrumb_ttld" style="margin-top: 20px;">
				<h2><?php echo $Recruitment["Recruitment"]["vitri"] ?></h2>
			</div>
				
				<div class="group1_ttld">
			<div class="info first">
				<h2>Thông tin vị trí tuyển dụng</h2>
				
                    <div style="overflow: hidden">
                        <table cellpadding="3" class="jobs">
                           <tbody><tr>
                               <td valign="top" nowrap="nowrap" class="key">Chức danh/ Vị trí:</td>

                               <td><strong><span class="impression"><?php echo $Recruitment["Recruitment"]["vitri"] ?></span></strong></td>
                           </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Số lượng tuyển:</td>
                               <td><?php echo $Recruitment["Recruitment"]["soluong"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Lĩnh vực ngành nghề:</td>
                               <td><a href="#"><?php echo $Recruitment["Career"]["name"] ?></a></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Địa điểm làm việc:</td>
                               <td><a href="#"><?php echo $Recruitment["City"]["name"] ?></a></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Tính chất công việc:</td>
                               <td><?php echo $Recruitment["Recruitment"]["tinh chat"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Mô tả công việc:</td>
                               <td>
                                <?php echo $Recruitment["Recruitment"]["mota"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Kĩ năng công việc:</td>
                               <td>
                                    <?php echo $Recruitment["Recruitment"]["kynang"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Trình độ:</td>
                               <td><?php echo $Recruitment["Recruitment"]["trinhdo"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Kinh nghiệm:</td>
                               <td><?php echo $Recruitment["Recruitment"]["kinhnghiem"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Giới tính:</td>
                               <td><?php echo $Recruitment["Recruitment"]["gioitinh"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Hình thức làm việc:</td>
                               <td><?php echo $Recruitment["Recruitment"]["hinhthuc"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Mức lương:</td>
                               <td><?php echo $Recruitment["Recruitment"]["mucluong"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Thời gian thử việc:</td>
                               <td><?php echo $Recruitment["Recruitment"]["thuviec"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Các chế độ khác:</td>
                               <td><?php echo $Recruitment["Recruitment"]["chedokhac"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Yêu cầu hồ sơ:</td>
                               <td>
                                   <?php echo $Recruitment["Recruitment"]["hoso"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Hạn nộp hồ sơ:</td>
                               <td><strong><span class="impression"><?php echo date('d-m-Y', strtotime($Recruitment["Recruitment"]["thoihan"])); ?></span></strong></td>
                            </tr>
                        </tbody></table>

                        </div>

                    </div>
			<div class="info">
				<h2>Thông tin doanh nghiệp tuyển dụng</h2>
                        <table cellpadding="3" class="jobs">
                           <tbody><tr>
                               <td valign="top" nowrap="nowrap" class="key">Tên công ty:</td>

                               <td><strong><span class="impression"><?php echo $Recruitment["Recruitment"]["tencongty"] ?></span></strong></td>
                           </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Địa chỉ:</td>
                               <td>
                                    <?php echo $Recruitment["Recruitment"]["diachi"] ?><br>
                                    <?php echo $Recruitment["Recruitment"]["motacongty"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Điện thoại:</td>
                               <td><?php echo $Recruitment["Recruitment"]["dienthoai"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Quy mô công ty:</td>
                               <td><?php echo $Recruitment["Recruitment"]["quymo"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Tiêu chí hoạt động:</td>
                               <td><?php echo $Recruitment["Recruitment"]["tieuchi"] ?>
                               </td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Website:</td>
                               <td><a href="#"><?php echo $Recruitment["Recruitment"]["website"] ?></a></td>
                            </tr>
                        </tbody></table>
			</div>
            <div class="info">
				<h2>Thông tin liên hệ</h2>
                        <table cellpadding="3" class="jobs">
                            <tbody><tr>
                               <td valign="top" nowrap="nowrap" class="key">Người liên hệ:</td>
                               <td><?php echo $Recruitment["Recruitment"]["nguoilienhe"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Địa chỉ liên hệ:</td>
                               <td><?php echo $Recruitment["Recruitment"]["diachilienhe"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Email liên hệ:</td>
                               <td><?php echo $Recruitment["Recruitment"]["email"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Điện thoại:</td>
                               <td><?php echo $Recruitment["Recruitment"]["phone"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Điện thoại di động:</td>
                               <td><?php echo $Recruitment["Recruitment"]["mobile"] ?></td>
                            </tr>
                            <tr>
                               <td valign="top" nowrap="nowrap" class="key">Hình thức liên hệ:</td>
                               <td><?php echo $Recruitment["Recruitment"]["hinhthuclienhe"] ?></td>
                            </tr>
                            
                        </tbody></table>
			</div>
			</div>
			
			<div class="group1" style="margin-top:20px">
				<script type="text/javascript">
	

    function ajaxFilterDistrict(city_id)
    {
        $.ajax({
        url: '<?php echo $this->Html->url(array("controller" => "districts", "action" => "ajaxDistrictOption", "admin" => false));?>/'+city_id,        
        success: function( data ) {
            if (console && console.log){
              $("#ProjectinfoDistrictId").html(data);
	      //alert($("#ProductDistrictId").val());
	      //ajaxFilterProject($("#ProductDistrictId").val());
            }
          }
        });
    }
    
    function ajaxFilterCareer(city_id)
    {
        $.ajax({
        url: '<?php echo $this->Html->url(array("controller" => "careers", "action" => "ajaxCareerOption", "admin" => false));?>/'+city_id,        
        success: function( data ) {
            if (console && console.log){
              $("#ProjectinfoCareerId").html(data);
	      //alert($("#ProductDistrictId").val());
	      //ajaxFilterProject($("#ProductDistrictId").val());
            }
          }
        });
    }

</script>
<div class="box_search">
					<form action="<?php echo $this->Html->url(array('action' => 'category', $Recruitment['RecruitmentType']['id'])); ?>" method="POST" id="filter_index">
						<div class="detail_search">
							<p class="key_title"><?php echo $Recruitment['RecruitmentType']['name']; ?></p>
							
							<div class="select_box">

								<input type="text" name="filter_keyword" value="<?php echo $keyword; ?>" class="keyword" />
								<select onchange="ajaxFilterDistrict(this.value);ajaxFilterCareer(this.value);$('#filter_index').submit();" name="filter_city_id">
								    <option value="all"><?php __('Tỉnh/Thành'); ?></option>
								    <?php foreach($cities as $c ) {
									$selected = "";
									if($c["City"]["id"] == $city_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $c["City"]["id"] ?>" <?php echo $selected; ?> ><?php echo $c["City"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index').submit();" name="filter_district_id" id="ProjectinfoDistrictId">
								    <option value="all">- <?php __('Quận/Huyện'); ?> -</option>
								    <?php foreach($districts as $d ) {
									$selected = "";
									if($d["District"]["id"] == $district_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $d["District"]["id"] ?>" <?php echo $selected; ?> ><?php echo $d["District"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index').submit();" name="filter_career_id" id="ProjectinfoCareerId">
								    <option value="all">- <?php __('Ngành nghề'); ?> -</option>
								    <?php foreach($careers as $ca ) {
									$selected = "";
									if($ca["Career"]["id"] == $career_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $ca["Career"]["id"] ?>" <?php echo $selected; ?> ><?php echo $ca["Career"]["name"] ?></option>
								    <?php } ?>
								</select>
							</div><!--end select_box-->
						</div><!-- end detail_search-->
					</form>

				</div><!--end box_search-->					
				
					
				<div class="table_list">

					<table id="ncdt" width="100%" cellspacing="0" cellpadding="0" border="0">
						<tr class="title">
							<td>Tiêu đề tin</td>
							
							<td>Địa điểm</td>
							<td>Ngành nghề</td>

							<td>Lượt xem</td>
							<td>Ngày đăng</td>
							
						</tr>
						<?php foreach($Recruitments as $k => $item) {
							$class = $k%2 == 0 ? "odd" : "even" ;
						?>
									<tr class="<?php echo $class; ?>">
										<td><?php echo $this->Html->link(__($item["Recruitment"]["vitri"], true), array('action' => 'view', $item['Recruitment']['id'])); ?></td>
			
			
										<td><?php echo $item["City"]["name"] ?></td>
										<td><?php echo $item["Career"]["name"] ?></td>
										<td><?php echo $item["Recruitment"]["hit"] ?></td>
										<td><?php echo $item["Recruitment"]["create_date"] ?></td>
										
									</tr>
						<?php } ?>
						
					</table>

				</div><!--end table_list-->
				
				
				
				
					<div id="pagination">						
						<ul class="pager">

							<li><?php echo $this->Paginator->prev('<< ' . __('trang trước', true), array(), null, array('class'=>'disabled'));?></li>
							<li>
								<?php echo $this->Paginator->numbers();?>
							</li>							
							<li><?php echo $this->Paginator->next(__('trang sau', true) . ' >>', array(), null, array('class' => 'disabled'));?></li>
						</ul>
					</div><!--end pagination-->
			</div><!--end group-->	
			
